class AddEduTypeToSchool < ActiveRecord::Migration
  def self.up
    add_column :schools, :edu_type, :integer
    School.find(:all, :conditions => "is_meta=1").each do |s|
      s.edu_type=1 # 小学
      s.save!
    end
  end

  def self.down
    remove_column :schools, :edu_type
  end
end
